package red.internal.server.registry.channel;

import io.netty.channel.Channel;
import red.internal.core.message.RegistryMessage;


/**
 * @author Jin Zheng
 * @since 2020-07-19
 */
public class NotifyCacheObject
{
	private long messageId;
	private RegistryMessage message;
	private Channel channel;

	public NotifyCacheObject(RegistryMessage message, Channel channel)
	{
		this.message = message;
		this.channel = channel;
		this.messageId = message.getMessageId();
	}

	public long getMessageId()
	{
		return messageId;
	}

	public RegistryMessage getMessage()
	{
		return message;
	}

	public void setMessage(RegistryMessage message)
	{
		this.message = message;
	}

	public Channel getChannel()
	{
		return channel;
	}

	public void setChannel(Channel channel)
	{
		this.channel = channel;
	}
}
